/**
 * 
 */
package com.sci.web.action.datareportseason;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.DataReportM_ReaearchDao;

/**
 * @author  BaiFuyou
 * @date: Nov 4, 2011 4:29:50 PM
 */
public class GetAllEnterpriseReaearch_BaseInfoAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4499453814881700968L;
	@Resource
	private DataReportM_ReaearchDao dataReportM_ReaearchDao;
	private int id;
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		String json = super.getJSONArrayString(dataReportM_ReaearchDao.getAllEnterprise_ResearchByUserId(id));
		super.outPrint(json);
		
		return "json";
	}

}
